//
//package com.rt.schedulebase.service.impl;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.core.conditions.Wrapper;
//import java.util.Map;
//import java.util.HashMap;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import java.util.List;
//import com.rt.schedulebase.dto.ExamPatientLockDto;
//import java.io.Serializable;
//import com.rt.schedulebase.service.IExamPatientLockService;
//import com.rt.schedulebase.entity.ExamPatientLock;
//import com.rt.schedulebase.mapper.ExamPatientLockMapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//public class ExamPatientLockServiceImpl extends ServiceImpl<ExamPatientLockMapper, ExamPatientLock> implements IExamPatientLockService
//{
//@Override
//    public boolean insertSelective(final ExamPatientLock examPatientLock) {
//        return this.retBool(Integer.valueOf(((ExamPatientLockMapper)this.baseMapper).insert(examPatientLock)));
//    }
//
//@Override
//    public boolean deleteByPrimaryKey(final String key) {
//        return this.retBool(Integer.valueOf(((ExamPatientLockMapper)this.baseMapper).deleteById((Serializable)key)));
//    }
//
//@Override
//    public boolean updateByPrimaryKeySelective(final ExamPatientLock examPatientLock) {
//        return this.retBool(Integer.valueOf(((ExamPatientLockMapper)this.baseMapper).updateById(examPatientLock)));
//    }
//
//@Override
//    public ExamPatientLock selectByPrimaryKey(final String key) {
//        return (ExamPatientLock)((ExamPatientLockMapper)this.baseMapper).selectById((Serializable)key);
//    }
//
//@Override
//    public List<ExamPatientLock> getList(final ExamPatientLockDto dto) {
//        final QueryWrapper<ExamPatientLock> qw = (QueryWrapper<ExamPatientLock>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("IC_CARD", dto.getIcCard());
//        map.put("SICK_ID", dto.getSickId());
//        map.put("NAME", dto.getName());
//        map.put("LOCK_DATE", dto.getLockDate());
//        qw.allEq((Map)map, false);
//        final List<ExamPatientLock> list = (List<ExamPatientLock>)((ExamPatientLockMapper)this.baseMapper).selectList((Wrapper)qw);
//        return list;
//    }
//
//@Override
//    public List<ExamPatientLock> getListAll() {
//        return (List<ExamPatientLock>)((ExamPatientLockMapper)this.baseMapper).selectList((Wrapper)null);
//    }
//
//@Override
//    public boolean delete(final ExamPatientLock examPatientLock) {
//        final UpdateWrapper<ExamPatientLock> uw = (UpdateWrapper<ExamPatientLock>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("IC_CARD", examPatientLock.getIcCard());
//        map.put("SICK_ID", examPatientLock.getSickId());
//        map.put("NAME", examPatientLock.getName());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((ExamPatientLockMapper)this.baseMapper).delete((Wrapper)uw)));
//    }
//
//@Override
//    public boolean update(final ExamPatientLock examPatientLock) {
//        final UpdateWrapper<ExamPatientLock> uw = (UpdateWrapper<ExamPatientLock>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("IC_CARD", examPatientLock.getIcCard());
//        map.put("SICK_ID", examPatientLock.getSickId());
//        map.put("NAME", examPatientLock.getName());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((ExamPatientLockMapper)this.baseMapper).update(examPatientLock, (Wrapper)uw)));
//    }
//
//@Override
//    public ExamPatientLock getInfo(final ExamPatientLockDto dto) {
//        final QueryWrapper<ExamPatientLock> qw = (QueryWrapper<ExamPatientLock>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("IC_CARD", dto.getIcCard());
//        map.put("SICK_ID", dto.getSickId());
//        map.put("NAME", dto.getName());
//        qw.allEq((Map)map, false);
//        return (ExamPatientLock)((ExamPatientLockMapper)this.baseMapper).selectOne((Wrapper)qw);
//    }
//}
